package com.suxin.ratelimit.v2.handler;

import com.suxin.ratelimit.v2.RateLimit;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.temporal.ChronoUnit;

/**
 * @author Tang
 * @classname Rate
 * @description [  ]
 * @date 2022/2/10 9:33
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Rate {

    private int duration;

    private int limit;

    private ChronoUnit unit;

    private RateLimit.TYPE type;

}